package com.xmg.shop.api.order.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Setter @Getter @ToString
public class OrderInfo extends BaseDomain{

    private String orderSn;//订单编号

    private Long userId;//下单用户id

    private int orderStatus;//订单状态

    private int shippingStatus;//发货状态

    private int payStatus;//支付状态

    private String consignee;//收货人

    private String country;

    private String province;

    private String city;

    private String district;//收货地区

    private String address;//具体地址

    private String zipcode;//邮政编码

    private String mobile;//手机号码

    private String orderAmount;//订单总价

    public String getOrderStatusDisplay(){
        switch (orderStatus) {
            case 0:
                return "未确认";
            case 1:
                return "已确认";
            case 2:
                return "已完成";
            default:
                return "";
        }
    }
    public String getShippingStatusDisplay(){
        switch (shippingStatus) {
            case 0:
                return "未发货";
            case 1:
                return "已发货";
            case 2:
                return "已完成";
            default:
                return "";
        }
    }
    public String getpayStatusDisplay(){
        switch (payStatus) {
            case 0:
                return "未付款";
            case 1:
                return "已付款";
            default:
                return "";
        }
    }


    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Byte orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getShippingStatus() {
        return shippingStatus;
    }

    public void setShippingStatus(Byte shippingStatus) {
        this.shippingStatus = shippingStatus;
    }

    public int getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Byte payStatus) {
        this.payStatus = payStatus;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = zipcode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

}